package org.springcloud.hystrixDashboard.controller;

import org.springcloud.hystrixDashboard.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @author huangjd
 * @date 2018年1月2日
 */
@RestController
public class HelloController {
	@Autowired
	private HelloService helloService;
	
	@RequestMapping(value="/hello")
	public String hello(@RequestParam String name){
		return helloService.homeService(name);
	}
}
